|
usbcpower3 2.2.0
|
USB-C Power 3 Click example. More...
Macros | |
| #define | MIKROBUS_POSITION_USBCPOWER3 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
USB-C Power 3 Click example.
This example demonstrates the use of the USB-C Power 3 Click board for monitoring USB Type-C connection and power status. The application reads CC and power status registers, detects connection changes, and logs detailed information about VBUS state, connection type, and cable orientation.
The demo application is composed of two sections :
Initializes the logger and USB-C Power 3 Click driver, and reads device identification information.
Continuously monitors CC and power status registers, detects changes, parses connection state, and controls VBUS direction (sink/source) accordingly.
| #define MIKROBUS_POSITION_USBCPOWER3 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |